<?php
namespace app\index\controller;
use app\index\model\Problemstatistics_model;
use think\Controller;
use think\Session;
use think\Db;
header("Content-type: text/html; charset=utf-8");
//问题统计控制器
class Problemstatistics extends Common
{
	//今天
	public function nowadays()
    {
    	$params = input();
        $Goods = new Problemstatistics_model;
        $nowadays = $Goods->nowadays($params);
        $this->assign('nowadays',$nowadays);
        return view('bu_nowadays');
    }
    //今天开始
    public function starting_from_today()
    {
        $params = input();
        $Goods = new Problemstatistics_model;
        $starting_from_today = $Goods->starting_from_today($params);
        $this->assign('starting_from_today',$starting_from_today);
        return view('bu_starting_from_today');
    }
    // 今天结束
    public function end_today()
    {
        $params = input();
        $Goods = new Problemstatistics_model;
        $end_today = $Goods->end_today($params);
        $this->assign('end_today',$end_today);
        return view('bu_end_today');
    }

    //明天
    public function tomorrow()
    {
    	$params = input();
        $Goods = new Problemstatistics_model;
        $tomorrow = $Goods->tomorrow($params);
        $this->assign('tomorrow',$tomorrow);
        return view('bu_tomorrow');
    }
    // 本周
    public function this_week()
    {
    	$params = input();
        $Goods = new Problemstatistics_model;
        $this_week = $Goods->this_week($params);
        $this->assign('this_week',$this_week);
        return view('bu_this_week');
    }
	// 本周结束
    public function end_of_the_week()
    {
    	$params = input();
        $Goods = new Problemstatistics_model;
        $end_of_the_week = $Goods->end_of_the_week($params);
        $this->assign('end_of_the_week',$end_of_the_week);
        return view('bu_end_of_the_week');
    }
    
    //已经过期
    public function already_expired()
    {
    	$params = input();
        $Goods = new Problemstatistics_model;
        $already_expired = $Goods->already_expired($params);
        $this->assign('already_expired',$already_expired);
        return view('bu_already_expired');
    }
}